//
//  PresentAnimation.h
//  PayViewDemo
//
//  Created by _Finder丶Tiwk on 15/6/11.
//  Copyright (c) 2015年 _Finder丶Tiwk. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

/*!
 *  @author _Finder丶Tiwk, 15-06-11 20:06:36
 *  @brief  控制器present动画方式
 */
typedef NS_ENUM(NSUInteger, KPresentAnimationType){
    /*!
     *  @author _Finder丶Tiwk, 15-06-11 20:06:36
     *  @brief  控制器从右边滑出来的效果
     */
    PresentSlideFromRight               =  0,
    /*!
     *  @author _Finder丶Tiwk, 15-06-11 20:06:36
     *  @brief  控制器视图由小到大的效果
     */
    PresentScaleFromSmallToBig   =  1,
    /*!
     *  @author _Finder丶Tiwk, 15-06-11 20:06:36
     *  @brief  控制器背景颜色从透明到半透明
     */
    PresentEaseIn                               =  2,
    /*!
     *  @author ZhangHonglin, 15-06-27 17:00:00
     *  @brief  默认为从右边滑动出来
     */
    PrensentSlideFromBottom   =  3,
    /*!
     *  @author _Finder丶Tiwk, 15-06-11 20:06:54
     *  @brief  默认为从右边滑动出来
     */
    PresentDefault                             =    PresentSlideFromRight
};


@interface PresentAnimation : NSObject<UIViewControllerAnimatedTransitioning>

/*!
 *  @author _Finder丶Tiwk, 15-06-12 12:06:11
 *  @brief  控制器present动画方式
 */
@property (nonatomic,assign)   KPresentAnimationType animationType;
/*!
 *  @author _Finder丶Tiwk, 15-06-12 12:06:35
 *  @brief  动画时间
 */
@property (nonatomic,assign)   NSTimeInterval  animationDuration;

+(instancetype)animationByPresentType:(KPresentAnimationType)presentType;



@end
